package pl.edu.agh.neural.core;

import pl.edu.agh.neural.simple.InputConnection;

public class InputNeuron extends ConnectedNeuron {

    private double inputValue;

    public InputNeuron() {
        super(new InputConnection[0]);
    }

    public void setInputValue(double inputValue) {
        this.inputValue = inputValue;
        evaluate();
    }

    @Override
    public double getSum() {
        return inputValue;
    }
}
